/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        int[] arr = {1,2,34,3,4,5,7,23,12};
        boolean flag = false;
        for (int i = 0; i < arr.length - 3; i++) {
            if(arr[i] % 2 != 0&&arr[i + 1] % 2 != 0&&arr[i + 2] % 2 != 0){
                flag = true;
            }
        }
        System.out.println(flag);
    }
}